package com.health.mapp.impl;

import org.apache.commons.lang3.StringUtils;
import com.health.mapp.bean.Header;
import com.health.mapp.bean.MessageNotifyReq;
import com.health.mapp.bean.MessageNotifyResp;
import com.health.mapp.interImpl.ThirdInterface;
import com.health.mapp.utils.Response;
import com.health.mapp.utils.ResultCode;
/**
 * 会员退出登录
 * @author bobo
 *
 */
public class MessageNotifyImpl implements ActionInterface {

	@Override
	public Response execute(Header header, Object reqBean) throws Exception {
	 
		
		MessageNotifyReq req = (MessageNotifyReq) reqBean;
		MessageNotifyResp _resp = new MessageNotifyResp();
		
		
		if (StringUtils.isNotBlank(req.getUserId())) {
			ThirdInterface inface = new ThirdInterface();
			inface.docReply(Long.valueOf(req.getUserId()));
		}else{
			_resp.setErrorCode(ResultCode.OPERATION_LAKE_PARAMETER_USERID);
			_resp.setErrorMsg(ResultCode.OPERATION_LAKE_PARAMETER_USERID_NOTE);
			return _resp;
		}
		
		return _resp;
	}
	
}
